<?php


	namespace app\validate\shop;


	use app\validate\BaseValidate;

	class UserValidate extends BaseValidate
	{

		protected $rule = [
			'uid'   => 'require|number',
			'token' => 'require'
		];

		protected $message = [
			'uid.require'   => 'uid必须存在',
			'uid.number'    => 'uid必须数字',
			'token.require' => 'token必须存在',
		];

		protected $scene = [
			'index'  => ['uid'],
			'verify' => ['token']
		];
	}
